package com.ze.familydayverlenovo;

import com.umeng.analytics.MobclickAgent;
import com.ze.commontool.PublicInfo;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.VideoView;



public class PlayMp4Activity extends Activity {
	private int 			flag;
	private Button	  picImageView;
	private View 			back;
	private VideoView 			playView;
	private boolean 	isHorizontal = false;
	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		MobclickAgent.onResume(this);
	}
	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
		 MobclickAgent.onPause(this);
	}
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_playmp4);
//		back = findViewById(R.id.about_back);
		playView = (VideoView) findViewById(R.id.playmp4_video);
		playView.setVideoURI(Uri.parse("android.resource://" + getPackageName() + "/" +R.raw.guid));
		playView.start();
		
//		back.setOnClickListener(new OnClickListener() {
//			
//			@Override
//			public void onClick(View v) {
//				// TODO Auto-generated method stub
//				PlayMp4Activity.this.finish();
//			}
//		});
	}
}
